//
//  AppDelegate+Hyphenate.m
//  JSTest
//
//  Created by 奇林刘 on 2018/9/27.
//  Copyright © 2018年 奇林刘. All rights reserved.
//

#import "AppDelegate+Hyphenate.h"

@implementation AppDelegate (Hyphenate)

- (void)registerHyphenateWithAppKey:(NSString *)appKey {
    EMOptions *options = [EMOptions optionsWithAppkey:appKey];
    [[EMClient sharedClient] initializeSDKWithOptions:options];
}

- (void)hyphenateDidEnterBackground:(UIApplication *)application {
    [[EMClient sharedClient] applicationDidEnterBackground:application];
}

- (void)hyphenateWillEnterForeground:(UIApplication *)application {
    [[EMClient sharedClient] applicationWillEnterForeground:application];
}

@end
